<template>
    <a-drawer width="100%" :visible="isShow" :body-style="{ paddingBottom: '80px', background: '#f0f2f5' }"
        placement="right" :get-container="false" :style="{ position: 'absolute'}"  :closable="false"
        :footer-style="{ textAlign: 'right' }">
        <a-card class="mb-2">
            <a-row :gutter="24">
                <a-col :span="20">
                    <div class=" mb-2 text-left font-semibold  text-lg ml-6 flex flex-row"
                        style="font-weight: 600;font-size: 16px;">
                        收款记录

                    </div>
                    <div class="flex flex-row text-center">
                        <div class="w-32 ">
                            <div class="mb-2">回款类型</div>
                            <div style="font-weight: 600;">{{
        collectionType.find(x => x.value == info.type)?.label
    }}</div>
                        </div>
                        <div class="w-40 ">
                            <div class="mb-2">回款金额</div>
                            <div style="font-weight: 600;">{{ info.amount }}</div>
                        </div>
                        <div class="w-40 ">
                            <div class="mb-2">回款日期</div>
                            <div style="font-weight: 600;">{{ info.receiveTime }}</div>
                        </div>

                        <div class="w-32  ">
                            <div class="mb-2">申请人</div>
                            <div style="font-weight: 600;">李四</div>
                        </div>

                        <div class="w-32   ">
                            <div class="mb-2">登记人</div>
                            <div style="font-weight: 600;">{{info.createUserName}}</div>
                        </div>
                        <div class="w-32">
                            <div class="mb-2">所属部门</div>
                            <div style="font-weight: 600;">{{info.deptName}}</div>
                        </div>
                    </div>
                </a-col>
                <a-col :span="4" class="text-right">
                    <a-button @click="isShow =false">返回</a-button>
                </a-col>
            </a-row>
        </a-card>
        <a-card class="mb-2">

            <a-tabs>
                <a-tab-pane key="1" tab="详细信息">
                    <edit ref="editRef" :isShow="true"></edit>
                </a-tab-pane>
                <!-- <a-tab-pane key="2" tab="审核流程">
                审核流程
                </a-tab-pane> -->
            </a-tabs>
        </a-card>

    </a-drawer>
</template>
<script setup>
import edit from '@/views/flw/customform/finance/components/collection/edit.vue';
import { payType, collectionType } from '@/utils/constants.js'
const isShow = ref(false)
const editRef = ref();
const info = ref({})
const show = (record) => {
    isShow.value = true
    editRef.value.show(record)
    info.value = { ...record }
}
defineExpose({
    show
});



</script>
